import { DECREMENT, INCREMENT } from "./constants"

/**
 * action creator，action创建函数，主要用于生成 action 对象
 * @returns 
 */
export const incrementActionCreator = () => ({
  type: INCREMENT,
  payload: {
    num: 5
  },
})

export const decrementActionCreator = () => ({
  type: DECREMENT,
  payload: {
    num: 2
  },
})